import request from '@/utils/request'

// 查询连续探测方案列表
export function listChooseScheme(query) {
  return request({
    url: '/business/chooseScheme/list',
    method: 'get',
    params: query
  })
}

// 查询连续探测方案详细
export function getChooseScheme(detectionSchemeId) {
  return request({
    url: '/business/chooseScheme/' + detectionSchemeId,
    method: 'get'
  })
}

// 新增连续探测方案
export function addChooseScheme(data) {
  return request({
    url: '/business/chooseScheme',
    method: 'post',
    data: data
  })
}

// 修改连续探测方案
export function updatChooseScheme(data) {
  return request({
    url: '/business/chooseScheme',
    method: 'put',
    data: data
  })
}

// 删除连续探测方案
export function delChooseScheme(detectionSchemeId) {
  return request({
    url: '/business/chooseScheme/' + detectionSchemeId,
    method: 'delete'
  })
}
